package com.atguigu.handler;

import com.atguigu.pojo.Movie;
import com.atguigu.pojo.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 琉
 * @create 2021-09-07 16:59
 */
@RestController
@RequestMapping("/ajax")
public class AjaxHandler {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    //异步请求普通类型
    @RequestMapping("/commonParameter")
    public Movie commonParameter(User user){
        logger.debug(user.toString());

        Movie movie = new Movie(1,"肖申克救赎",10d);

        return movie;
    }




}
